package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.http.HLANetFile;
import HLLib.io.HLAsynchronousLoadManager;

public class HLClassAsynchronousLoadManager extends HLLibClass {
    public HLClassAsynchronousLoadManager(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLAsynchronousLoadManager();
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            HLAsynchronousLoadManager.LoadFileFromPathAndNetBackGround((HLANetFile)args.GetObject(0), args.GetBoolean(0));
            break;
        }
        case 1: {
            HLAsynchronousLoadManager.ClearQueue();
            break;
        }
        case 2: {
            HLAsynchronousLoadManager.Clear();
            break;
        }
        case 3: {
            HLAsynchronousLoadManager.SetPause(args.GetBoolean(0));
            break;
        }
        case 4: {
            HLAsynchronousLoadManager.CreateThread();
            break;
        }
        case 5: {
            HLAsynchronousLoadManager.StartLoad((HLANetFile)args.GetObject(0));
            break;
        }
        case 6: {
            HLAsynchronousLoadManager.CheckSameFile((HLANetFile)args.GetObject(0));
            break;
        }
        }
    }
}
